home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
comm
/
mail
/
YAMscripts.lha
/
DeleteFolder.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-02-17
|
660b
|
25 lines
/* DeleteFolder.rexx 1.0 - Quickly deletes all messages in the current folder.
** Send comments and suggestions to knikulai@utu.fi
** Check http://www.utu.fi/~knikulai/ARexx.html for many more useful scripts */
options results
conf='yes' /* Set to yes, if you want a confimation requester! */
address 'YAM'
if upper(conf)='YES' then do
'GetFolderInfo name'
'Request "Delete all messages in folder' result'?" "_Yes, do it!|_No way!"'
if result=0 then exit
end
name=result
'GetFolderInfo path'
path=result
if rc=0 then do
if pos(':',path)=0 then path='YAM:'path
path=path'/#?'
address command 'Delete >nil:' path
address 'YAM' 'MailUpdate'
end
exit